<!-- 一个vue2基础模板 -->
<template>
  <div>
    <h1>基础按钮组件1.0.1</h1>
    <el-button type="primary" @click="btnClick">{{ label }}</el-button>
  </div>
</template>

<script>
export default {
  name: "AlmButton",
  data() {
    return {
      label: "Alm Button",
    };
  },
  methods: {
    btnClick() {
      this.$emit("custom-event", "这是来自子组件的数据");
    },
    someFunc(data) {
      console.log("someFunc from child, data", data);
    },
  },
};
</script>
